package com.component.api.model.data;

import com.component.api.model.AbstractData;
import com.component.api.model.DataType;
import lombok.Data;

/**
 * 描述：
 * json字符串
 * @author xianggj
 * @Date 2021/10/12 17:17
 **/
@Data
public class StringData extends AbstractData {

    private static final long serialVersionUID = -1L;

    public StringData() {
    }

    public StringData( String key, String data) {
        super(DataType.STRING);
        this.data = data;
        this.key = key;
    }

    /**
     * 预览字段
     */
    private String key;

    private String data;
}
